<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>角色管理--${fns:getConfig('productName')}</title>
</head>

<body>
	
	<ul class="nav nav-tabs" style="margin:0 4px;margin-bottom:4px;">
		<li class="active"><a href="${ctx}/role/list.do?top=${fns:encodeParam(top)}&left=${fns:encodeParam(left)}">
			<i class="icon icon-list"></i>&nbsp;<span>角色列表</span></a></li>
			<sec:authorize ifAnyGranted="ROLE_sys_role_edit">
		<li><a href="${ctx}/role/input.do?top=${fns:encodeParam(top)}&left=${fns:encodeParam(left)}">
		     <i class="icon icon-edit"></i>&nbsp;<span>角色添加</span></a></li>
		     </sec:authorize>
	</ul>
	<div  class="form-horizontal container"  style="width:auto;">
	<tags:message content="${msg}"/>
	<table  class="table table-striped table-hover table-bordered table-condensed">
		<tr>
			<th>英文名称</th>
			<th>中文名称</th>
<!-- 			<th>角色类别</th> -->
			<th>是否启用</th>
			<th>备注</th>
			<sec:authorize ifAnyGranted="ROLE_sys_role_edit">
			<th>操作</th>
			</sec:authorize>
		</tr>
		<c:forEach items="${list}" var="role">
			<tr>
				<td>${role.roleName}</td>
				<td>${role.roleDesc}</td>
<%-- 				<td><pt:code category="2007" code="${role.category}"></pt:code></td> --%>
				<td><pt:code category="1000" code="${role.useFlag}"></pt:code></td>
				<td>${role.remark}</td>
				<td class="the_icons">
				<sec:authorize ifAnyGranted="ROLE_sys_role_edit">
					<c:if test = "${role.roleName != 'ssjrole' && role.roleName != 'xqjrole' }">
					<a href="${ctx}/role/input.do?id=${fns:encodeParam(role.id)}&top=${fns:encodeParam(top)}&left=${fns:encodeParam(left)}" title="修改"><i class="icon icon-edit"></i></a>
					<a href="${ctx}/role/delete.do?id=${fns:encodeParam(role.id)}&top=${fns:encodeParam(top)}&left=${fns:encodeParam(left)}" onclick="return confirmx('确认要删除该角色吗？', this.href)" title="删除"><i class="icon icon-remove"></i></a>
					</c:if>
				</sec:authorize>
				</td>
			</tr>
		</c:forEach>
	</table>
	</div>
</body>
</html>